package com.qhy.springcloud.service;

import com.qhy.springcloud.dao.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author qiuhongyu
 * @date 2020/10/10 14:59
 */
@FeignClient(value = "springcloud-provider-sentinel", fallback = DeptFallBackService.class)
public interface DeptClientService {
    @GetMapping("/queryDept/openfeign/{id}")
    CommonResult<?> queryDeptById(@PathVariable("id") Long id);
}
